import * as API from './index'


//订单提交

export const subOrder=(params)=>{
    return API.POST('/api/v1/orders',params)
}

//获取订单列表

export const orderList=(params)=>{
    return API.GET('/api/v1/orders',{params:params})
}


//根据id获取订单详情

export const orderDetail=(params)=>{
    return API.GET('/api/v1/orders/'+params)
}



//根据id删除详情
export const delOrder=(params)=>{
    return API.DELETE('/api/v1/orders/'+params)
}
